<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{/common/header::header-head}">
</head>
<body>

<div th:replace="~{/common/header::header-body}"></div>
<table class="table">
    <thead>
    <tr>
        <th scope="col">评论id</th>
        <th scope="col">评论作者</th>
        <th scope="col">评论内容</th>
        <th scope="col">评论时间</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="comment:${comments}">
        <th scope="row" th:text="${comment.getId()}">1</th>
        <td th:text="${comment.getAuthor()}">Mark</td>
        <td th:text="${comment.getContent()}">Otto</td>
        <td th:text="${comment.getDate()}">@mdo</td>
        <td>
            <a class="btn btn-primary" role="button" th:href="@{'/back/comment/delete/'+${comment.getId()}}">删除</a>
        </td>
    </tr>
    </tbody>
</table>

</body>
<script>

</script>
</html>